﻿using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations.Schema;

namespace WaferService
{
    [Index(nameof(Foup), nameof(Slot), nameof(Location), IsUnique = true)]
    [Table("Substrate")]
    public class Substrate
    {
        public int Id { get; set; }

        public int Foup { get; set; }

        public int Slot { get; set; }

        public WaferLocation Location { get; set; }

        public WaferState State { get; set; }
    }


    public enum WaferLocation
    {
        Foup,
        Arm1,
        Arm2,
        Aligner,
        LoadLock,
        Stage
    }

    public enum WaferState
    {
        MappingError = -2,
        Error,
        Absent,
        Present,
        Loading,
        Processing,
        Unloading,
        Finished,
    }
}
